create a terminal using c